<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>

<body>
    <div id="login">
        <h2 class="white title">小白图书</h2>
        <div>
            <ul class="center larger">
                <li>
                    <a class="gray" href="/login.html">登录</a>
                </li>
                <li>
                    <a href="/register.html">注册</a>
                </li>
            </ul>
            <div>
                <form method="post" action="/register" enctype="multipart/form-data">
                    <div class="ui form">
                        <div class="inline field">
                            <label>昵称</label>
                            <input placeholder="昵称" type="text" name="name">
                        </div>
                        <div class="inline field">
                            <label>密码</label>
                            <input placeholder="密码" type="password" name="password">
                        </div>
                        <div class="inline field">
                            <label>头像</label>
                            <input  type="file" name="headImage" value="头像" id="headImage">
                        </div>
                        <div class="inline field">
                            <input class="ui secondary button" type="submit" value="注册">
                        </div>
                    </div>
                </form>
                <label th:text="${msg}"></label>
            </div>
        </div>
    </div>
    <div th:include="common :: #common"></div>
    <link rel="stylesheet" href="/css/login.css">
    <script src="/js/register.js"></script>
</body>

</html>